package com.carkeeper.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;

/**
 * @author: dongxing
 * @date ：Created in 2020/5/25
 * @description ：服务项Po
 * @version: 1.0
 */
@Data
@TableName(value = "tb_service",resultMap = "serviceMapper",autoResultMap = true)
public class ServicePO extends AbstractBasePO{
    @TableId(type = IdType.ASSIGN_ID)
    private Long id;
    private String name;
    private Integer normalPrice;//原价格
    private Integer activityPrice;
    private Integer isBeginPrice;//是否起价
    private String imgUrl;
    private String code;
    private Long serviceTypeId;//一级分类id
    private Long serviceSubTypeId;//二级分类id
    private Long storeId;//商家id
    @TableField(exist = false)
    @JsonProperty(value = "serviceType")
    private ServiceTypePO serviceTypePo;//一级服务分类
    @JsonProperty(value = "serviceSubType")
    @TableField(exist = false)
    private ServiceSubtypePO serviceSubTypePo;//二级服务分类
    @TableField(exist = false)
    @JsonProperty(value = "store")
    private StorePO storePo;//商家信息
    private Integer status;//上下架
}
